import benchamark from "./benchamark";


document.addEventListener('DOMContentLoaded', function () {

    //TODO
    document.onkeydown = function (e) {
        var eventObj = window.event ? event : e

        if (eventObj.ctrlKey) {

            if (eventObj.keyCode == 90) {
                //Ctrl+z
                console.log("stopRecord");
                window.IssacBenchmark.stopRecord();
            } else if (eventObj.keyCode == 88) {
                //Ctrl+x
                console.log("startRecord");
                window.IssacBenchmark.startRecord();
            }
        }
    };


    setTimeout(() => {
        benchamark.startRecord();
    }, 3000);

}, false);